import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
}

/**
 * 获取信息
 * @returns 
 */
export function getInfo() {
  return request({
    url: '/admin/my',
    method: 'get',
    params: { }
  })
}

// 获取菜单
export function getSystemMenu() {
  return request({
    url: '/admin/auth-menus',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: 'admin/logout',
    method: 'post'
  })
}
